<?php

namespace common\models\db\tables;

use Yii;

/**
 * This is the model class for table "{{%building_order_message_has_images}}".
 *
 * @property int $id
 * @property int $building_order_message_id
 * @property int $file_id
 * @property int $created_at
 * @property int $updated_at
 * @property int $deleted_at
 */
class BuildingOrderMessageHasImages extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%building_order_message_has_images}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['building_order_message_id', 'file_id', 'created_at', 'updated_at', 'deleted_at'], 'trim'],
            [['building_order_message_id', 'file_id', 'created_at', 'updated_at'], 'required'],
            [['building_order_message_id', 'file_id', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['deleted_at'], 'default', 'value' => 0],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'building_order_message_id' => Yii::t('app', 'Building Order Message ID'),
            'file_id' => Yii::t('app', 'File ID'),
            'created_at' => Yii::t('app', 'Created At'),
            'updated_at' => Yii::t('app', 'Updated At'),
            'deleted_at' => Yii::t('app', 'Deleted At'),
        ];
    }
}
